package com.tanhua;

import com.aliyun.oss.OSSClient;
import com.arcsoft.face.EngineConfiguration;
import com.tanhua.face.FaceProperties;
import com.tanhua.face.FaceTemplate;
import com.tanhua.oss.OssProperties;
import com.tanhua.oss.OssTemplate;
import com.tanhua.sms.SmsProperties;
import com.tanhua.sms.SmsTemplate;
import org.springframework.boot.autoconfigure.condition.ConditionalOnClass;
import org.springframework.boot.context.properties.EnableConfigurationProperties;
import org.springframework.context.annotation.Bean;

/**
 * Created with IntelliJ IDEA.
 *
 * @ClassName: TanhuaAutoConfiguration
 * @Author:王晨晗
 * @Description: 自动装配类
 * @Date: 2021/12/25/21:19
 */
@EnableConfigurationProperties({SmsProperties.class , OssProperties.class })
public class TanhuaAutoConfiguration {
    @Bean
    public SmsTemplate smsTemplate(SmsProperties smsProperties){
        return new SmsTemplate(smsProperties);
    }

    @Bean
    public OssTemplate ossTemplate(OssProperties ossProperties){
        return new OssTemplate(ossProperties);
    }

}
